package com.xinou.daily_report.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.xinou.common.base.database.EntityBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysDaily对象", description="")
public class SysDaily extends EntityBase {

    @ApiModelProperty(value = "谁写的")
    private Long workerId;

    @ApiModelProperty(value = "每日总结")
    private String summary;

    @ApiModelProperty(value = "是否已经被加分")
    private Boolean isAddedScore;

    @ApiModelProperty(value = "是否已读")
    private Boolean isRead;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "0 正常 1 补缴日报 2 计划")
    private Integer state;

    @ApiModelProperty(value = "日期")
    private LocalDate dailyTime;

    @ApiModelProperty(value = "部门")
    private Long deptId;

    @ApiModelProperty(value = "创建时间 yyyy-MM-dd HH:mm:ss", example = "2020-11-28 00:12:23", required = true)
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime insertTime;
}
